<?php if($this->session->userdata('admin')){?>
<ul>
<?php echo $menu=='home'?'<li class="active">':'<li>'; ?><a class="" href="<?php echo $menu=='home'?'#':base_url().'home'; ?>"><i class="<?php echo $menu=='home'?'icon-ok':'icon-home'; ?>"></i>Dashboard<?php echo $menu=='home'?'<span class="selected"></span>':''; ?></a></li>
<?php echo $menu=='materi'?'<li class="active">':'<li>'; ?><a class="" href="<?php echo $menu=='materi'?'#':base_url().'materi'; ?>"><i class="<?php echo $menu=='materi'?'icon-ok':'icon-bar-chart'; ?>"></i>Materi<?php echo $menu=='materi'?'<span class="selected"></span>':''; ?></a></li>
<?php echo $menu=='ujian'?'<li class="active">':'<li>'; ?><a class="" href="<?php echo $menu=='ujian'?'#':base_url().'ujian'; ?>"><i class="<?php echo $menu=='ujian'?'icon-ok':'icon-bar-chart'; ?>"></i>Ujian<?php echo $menu=='ujian'?'<span class="selected"></span>':''; ?></a></li>
<?php echo $menu=='laporan'?'<li class="active">':'<li>'; ?><a class="" href="<?php echo $menu=='laporan'?'#':base_url().'laporan'; ?>"><i class="<?php echo $menu=='laporan'?'icon-ok':'icon-bar-chart'; ?>"></i>Laporan<?php echo $menu=='laporan'?'<span class="selected"></span>':''; ?></a></li>
<?php if($this->session->userdata('admin')['type'] == '1'){ ?>
<?php echo $menu=='siswa'?'<li class="active">':'<li>'; ?><a class="" href="<?php echo $menu=='siswa'?'#':base_url().'siswa'; ?>"><i class="<?php echo $menu=='siswa'?'icon-ok':'icon-user'; ?>"></i>Siswa<?php echo $menu=='siswa'?'<span class="selected"></span>':''; ?></a></li>
<?php echo $menu=='kelas'?'<li class="active">':'<li>'; ?><a class="" href="<?php echo $menu=='kelas'?'#':base_url().'kelas'; ?>"><i class="<?php echo $menu=='kelas'?'icon-ok':'icon-bar-chart'; ?>"></i>Kelas<?php echo $menu=='kelas'?'<span class="selected"></span>':''; ?></a></li>
<?php echo $menu=='mata_pelajaran'?'<li class="active">':'<li>'; ?><a class="" href="<?php echo $menu=='mata_pelajaran'?'#':base_url().'mata_pelajaran'; ?>"><i class="<?php echo $menu=='mata_pelajaran'?'icon-ok':'icon-bar-chart'; ?>"></i>Mata Pelajaran<?php echo $menu=='mata_pelajaran'?'<span class="selected"></span>':''; ?></a></li>
<?php echo $menu=='admin'?'<li class="active">':'<li>'; ?><a class="" href="<?php echo $menu=='admin'?'#':base_url().'admin/table'; ?>"><i class="<?php echo $menu=='admin'?'icon-ok':'icon-bar-chart'; ?>"></i>Admin<?php echo $menu=='admin'?'<span class="selected"></span>':''; ?></a></li>
</ul>
<?php }}else{ ?>
<ul>
<?php echo $menu=='home'?'<li class="active">':'<li>'; ?>
<a class="" href="<?php echo $menu=='home'?'#':base_url().'user/home'; ?>"><i class="<?php echo $menu=='home'?'icon-ok':'icon-home'; ?>"></i>Dashboard<?php echo $menu=='home'?'<span class="selected"></span>':''; ?></a></li>
<?php echo $menu=='materi'?'<li class="active">':'<li>'; ?><a class="" href="<?php echo $menu=='materi'?'#':base_url().'user/materi'; ?>"><i class="<?php echo $menu=='materi'?'icon-ok':'icon-bar-chart'; ?>"></i>Materi<?php echo $menu=='materi'?'<span class="selected"></span>':''; ?></a></li>
<?php echo $menu=='ujian'?'<li class="active">':'<li>'; ?><a class="" href="<?php echo $menu=='ujian'?'#':base_url().'user/ujian'; ?>"><i class="<?php echo $menu=='ujian'?'icon-ok':'icon-user'; ?>"></i>Ujian<?php echo $menu=='ujian'?'<span class="selected"></span>':''; ?></a></li>
<?php echo $menu=='laporan'?'<li class="active">':'<li>'; ?><a class="" href="<?php echo $menu=='laporan'?'#':base_url().'user/laporan'; ?>"><i class="<?php echo $menu=='laporan'?'icon-ok':'icon-bar-chart'; ?>"></i>Laporan<?php echo $menu=='laporan'?'<span class="selected"></span>':''; ?></a></li>
</ul>
<?php }?>